package com.scse.bms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.sql.Timestamp;

/**
 * @Title: UserVO
 * @Author: 吴赠禹
 * @Date: 2020-12-10 下午 2:08
 * @Version: 1.0
 * @Description: 用户-视图对象(view object)
 *
 */

@Getter
@Setter
@ToString
@Alias("userVO")
public class UserVO {
    /**
     * 封装Customer属性、以及Authority权限类别
     */
    private Integer id;
    private String username;
    /**
     * @JsonIgnore 过滤不需要的字段
     * 会导致接受不到Ajax参数
     */
    // @JsonIgnore
    private String password;
    private Integer valid;
    private String realName;
    private Integer gender;
    private String email;
    private String phoneNum;
    private Timestamp updateTime;
    private Timestamp registerTime;
    private String role;

    /**
     * 个人头像文件
     */
    private String src;
}
